//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_operations_contract.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			Operations_contract: '',
			Voucher_sub: '',
			Client_name: '',
			Site: '',
			Client_man: '',
			Client_tel: '',
			Total_price: '',
			Goods_num: '',
			Province: '',
			City: '',
			District: '',
			Client_addr: '',
			StartTime: '',
			EndTime: '',
			Remark: '',
			Attachment: '',
			Image: ''
		},
		editFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'text', disabled: true },
			{ key: '审核通过客户', data: [], title: '客户名称', required: true, field: 'Client_name', type: 'select' },
			{ title: '站点名称', required: true, field: 'Site' },
			{ title: '联系人', field: 'Client_man', type: 'text' },
			{ title: '电话', field: 'Client_tel', type: 'text' },
			{ title: '总价', field: 'Total_price', type: 'text', disabled: true },
			{ title: '数量', field: 'Goods_num', type: 'text', disabled: true },
			{ key: '省', data: [], title: '省', required: true, field: 'Province', type: 'select' },
			{ key: '省', data: [], title: '市', required: true, field: 'City', type: 'select' },
			{ key: '省', data: [], title: '区', required: true, field: 'District', type: 'select' },
			{ title: '地址', field: 'Client_addr', type: 'text' },
			{ title: '开始日期', required: true, field: 'StartTime', type: 'datetime' },
			{ title: '结束日期', required: true, field: 'EndTime', type: 'datetime' },
			{ title: '备注', field: 'Remark', type: 'textarea' },
			{ title: '附件', field: 'Attachment', type: 'file' },
			{ title: '图片', field: 'Image', type: 'img' },
			{ title: 'ID', field: 'Operations_contract', disabled: true, hidden: true }
		],
		searchFormFields: { Voucher_sub: '', Client_name: '', Site: '', Client_man: '', Client_tel: '', AuditStatus: '' },
		searchFormOptions: [
			{ title: '联系人', field: 'Client_man', type: 'like' },
			{ title: '电话', field: 'Client_tel' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ key: '审核通过客户', data: [], title: '客户名称', field: 'Client_name', type: 'select' },
			{ title: '站点名称', field: 'Site', type: 'like' },
			{ type: 'group' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Client_name', title: '客户名称', type: 'string', bind: { key: '审核通过客户', data: [] } },
			{ field: 'Site', title: '站点名称', type: 'string' },
			{ field: 'Client_man', title: '联系人', type: 'string' },
			{ field: 'Client_tel', title: '电话', type: 'string' },
			{ field: 'Province', title: '省', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'City', title: '市', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'District', title: '区', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'Client_addr', title: '地址', type: 'string' },
			{ field: 'Total_price', title: '总价', type: 'decimal' },
			{ field: 'Goods_num', title: '数量', type: 'float' },
			{ field: 'state', title: '合同状态', type: 'int', bind: { key: '合同期限状态', data: [] } },
			{ field: 'StartTime', title: '开始日期', type: 'datetime' },
			{ field: 'EndTime', title: '结束日期', type: 'datetime' },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Creator', title: '创建人员', type: 'string' }
		],
		table: {
			key: 'Operations_contract',
			footer: 'Foots',
			cnName: '运维合同',
			name: 'q_operations_contract',
			url: '/q_operations_contract/',
			sortName: 'Voucher_sub'
		}
	};
}
